package com.jsm.tf.net.session;

import com.jsm.tf.entity.User;
import io.netty.channel.Channel;

import java.util.Set;

public interface ISessionManager {
    User getUserByChannel(Channel channel);

    Channel getChannelByUser(User user);

    void bind(User user, Channel channel);

    void unbind( Channel channel);


    void enterRoom(Long roomId, User user);

    void leaveRoom(Long roomId, User user);

    Long getRoomId(User userByChannel);

    Set<User> getRoomUsers(Long roomId);
}
